package com.css.zfzx.fxpg.modules.workarea.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.workarea.repository.entity.FxWorkareaEntity;
import com.css.zfzx.fxpg.modules.workarea.viewobjects.FxWorkareaQueryParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-24
 */

public interface FxWorkareaService {

    JSONObject queryFxWorkareas(FxWorkareaQueryParams queryParams, int curPage, int pageSize);

    FxWorkareaEntity getFxWorkarea(String id);

    FxWorkareaEntity saveFxWorkarea(FxWorkareaEntity fxWorkarea);

    FxWorkareaEntity updateFxWorkarea(FxWorkareaEntity fxWorkarea);

    void deleteFxWorkareas(List<String> ids);

    String importExcel(MultipartFile file);

    String exportExcel(FxWorkareaQueryParams queryParams, HttpServletResponse response);

    List<FxWorkareaEntity> fxWorkareaStatisticalAnalysis(FxWorkareaQueryParams queryParams);

    List<String> getWorkspaces();
}
